<?php

use CodeIgniter\Router\RouteCollection;

/**
 * @var RouteCollection $routes
 */
$routes->get('/', 'Home::index');

$routes->get('travel', 'Travel::index'); 

$routes->get('/travel/showme/(:any)', 'Travel::showme/$1');

$routes->get('/image/(:any)', 'Media::image/$1'); 

$routes->get('/travel/edit/(:any)','Travel::edit/$1');

$routes->post('/travel/handle', 'Travel::handle');


$routes->get('/travel/create', 'Travel::create'); 
$routes->get('/travel/delete/(:num)', 'Travel::delete/$1');
$routes->post('/travel/delete/(:num)', 'Travel::delete/$1');